#pragma once
#include "ActionInterval.h"

class ScaleTo:public ActionInterval{
protected:
	float m_ScaleX,m_ScaleY;
	float m_DeltaX,m_DeltaY;
public:
	static ScaleTo *create(float scaleX,float scaleY,float duration);
	virtual bool init(T_Node *node);
	virtual void update(int dt);
	virtual void startWithTarget(T_Node *);
	virtual ActionType getActionType(){return ScaleAction;}
};